﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace BeniBastanYaratProject.Uye
{
    public partial class AdresBilgiIslem : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            Guid UserID = (Guid)Membership.GetUser().ProviderUserKey;
           

            DBBaglantiDataContext db = new DBBaglantiDataContext();
            var Sorgu = from x in db.UyeAdreslers where x.aspnet_User.UserId == UserID select new {x.AdresAdi,x.AdresID,x.AdresBilgisi,x.AdresTarif,x.AdresNot };

            GridView1.DataSource = Sorgu;
            GridView1.DataBind();

        }
    }
}